﻿@{
    ViewBag.Title = ViewBag.Name + " - 网站分类 - 果壳园";
    Layout = "~/Views/Shared/_HomeLayout.cshtml";
}
@section script{
    <script src="~/Content/scripts/jquery-1.8.0.min.js"></script>
    <script src="~/Content/scripts/paging.js"></script>
    <script>
        //分页
        $("#page").paging({
            pageNo: @ViewBag.Index,
            totalPage: @ViewBag.Page,
            totalSize: @ViewBag.Total,
            callback: function (num) {
                if(num!=1){
                    location="/cate/@ViewBag.Key/"+num;
                }else{
                    location='/cate/@ViewBag.Key';
                }
            }
        })
    </script>
}